package com.mayisoftware.mayioa.business.worktime.impl.serviceImpl;


import com.mayisoftware.mayioa.business.worktime.api.domain.WrokTimeImportInfo;
import com.mayisoftware.mayioa.business.worktime.api.service.IWorkTimeService;
import com.mayisoftware.mayioa.business.worktime.impl.dao.TmWorktimeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class WorkTimeServiceImpl implements IWorkTimeService {

    @Autowired
    private TmWorktimeMapper importMapper;

    @Override
    public int insertImportOneRecord(WrokTimeImportInfo wtImportInfo) {
        return importMapper.insertImportOneRecord(wtImportInfo);
    }

    @Override
    public List<WrokTimeImportInfo> queryRecordList(WrokTimeImportInfo wtImportInfo) {
        return importMapper.selectRecordList(wtImportInfo);
    }

    @Override
    public List<WrokTimeImportInfo> queryRecordListById(String recordId) {
        return importMapper.selectRecordListById(recordId);
    }

    @Override
    public List<WrokTimeImportInfo> queryRecordListNeedParse() {
        return importMapper.selectRecordListNeedParse();
    }

    @Override
    public int editInputRecord(WrokTimeImportInfo record) {
        return importMapper.updateInputRecord(record);
    }



}
